package com.lkm.app_ui.m.Imple.push.handle;

import android.content.Context;

import com.lkm.app_ui.AppConst;
import com.lkm.app_ui.jz.util.JzUtil;
import com.lkm.app_ui.m.Imple.fun.FunModuleImple;
import com.lkm.app_ui.m.fun.FunModule;
import com.mj.hx.yl.push.PushHandle;

import java.lang.reflect.Type;



public class PushCheckUpAppHandle implements PushHandle<Void> {

    @Override
    public Type getDataClass() {
        return null;
    }

    @Override
    public boolean handler(Context context, Void cmd) {
        JzUtil.checkUpdateApp(true);
        FunModuleImple initAppModule = (FunModuleImple) AppConst.getModuleManager().peekModule(FunModule.class);
        if (initAppModule != null)
            initAppModule.checkVersionUp();
        return true;
    }
}
